mouse
Type
function
Summary
Returns the state of a mouse button.
Syntax
mouse([<buttonNumber>])
the mouse
Description
Use the mouse function to check whether the user is pressing a mouse button.
If you don't specify a buttonNumber, the mouse function returns the state of mouse button 1.
Parameters
Name | Type | Description |
---|---|---|
buttonNumber | enum | The buttonNumber specifies which mouse button to check:
|
Examples
the mouse
mouse(3)
if mouse(defaultButton) is "up" then
goBackToStart
end if
Related
constant: left
function: mouseClick
glossary: mouse button, return
message: mouseDoubleUp, mouseStillDown
Compatibility and Support
Introduced
LiveCode 1.0
OS
mac
windows
linux
Platforms
desktop
server